<template>
	<view>
		<view class="head-search">
			<input v-model="cont" placeholder="搜索名字" placeholder-style="color: #C2C7CC;"/>
			<u-button v-if="cont!==''" style="height: 76upx;" :ripple="true" ripple-bg-color="#3291F8">搜索</u-button>
			<image v-else src="../../static/search.png" mode=""></image>
			<view v-else></view>
		</view>
		<view v-for="item,i in list" :key="i">
			<view class="txl-box">
				<view class="txl-img">
					<image :src="item.img" mode=""></image>
				</view>
				<view class="txl-cont">
					<view class="">
						<view class="cont-n">{{ item.name }}</view>
						<view class="cont-zw">{{ item.zhiwei }}</view>
					</view>
					<view class="add-btn">+好友</view>
				</view>
			</view>
			<view class="line">
				<view></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cont:'',
				list:[
					{
						img:'../../static/logo.png',
						name:'龙飞扬',
						zhiwei:'10级-商务管理'
					},{
						img:'../../static/logo.png',
						name:'龙飞扬',
						zhiwei:'10级-商务管理'
					},{
						img:'../../static/logo.png',
						name:'龙飞扬',
						zhiwei:'10级-商务管理'
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.head-search{
		display: flex;
		align-items: center;
		padding: 36upx 30upx 42upx 30upx;
		text-align: center;
		position: relative;
		input{
			width: 100%;
			height: 80upx;
			font-size: 28upx;
			background: #EDF1F2;
			padding-left: 50upx;
			margin-right: 20upx;
		}
		image{
			width: 34upx;
			height: 34upx;
			position: absolute;
			left: 300upx;
			top: 60upx;
		}
	}
	.txl-box{
		display: flex;
		padding: 36upx 26upx;
		.txl-img{
			image{
				width: 100upx;
				height: 100upx;
				border-radius: 50%;
			}
		}
		.txl-cont{
			width: 100%;
			display: flex;
			justify-content: space-between;
			margin: 5upx 0 0 38upx;
			.cont-n{
				color: #101010;
				font-size: 28upx;
				margin-bottom: 10upx;
			}
			.cont-zw{
				color: #A9ABAE;
				font-size: 24upx;
			}
			.add-btn{
				display: flex;
				align-items: center;
				justify-content: center;
				width: 146upx;
				height: 56upx;
				color: #FFFFFF;
				background: #3291F8;
				border-radius: 12upx;
				margin-top: 15upx;
			}
		}
	}
	.line{
		padding: 0 30upx;
		view{
			width: 100%;
			height: 2upx;
			background: #E1E3E6;
		}
	}
</style>
